package com.ruoyi.liangshi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.liangshi.domain.GdArchShift;
import com.ruoyi.liangshi.domain.GdAtchItem;
import com.ruoyi.liangshi.mapper.GdArchShiftMapper;
import com.ruoyi.liangshi.mapper.GdAtchItemMapper;
import com.ruoyi.liangshi.service.IGdAtchItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 菜品信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-18
 */
@Service
public class GdAtchItemServiceImpl  extends ServiceImpl<GdAtchItemMapper, GdAtchItem>  implements IGdAtchItemService
{
    @Autowired
    private GdAtchItemMapper gdAtchItemMapper;

    /**
     * 查询菜品信息
     * 
     * @param id 菜品信息主键
     * @return 菜品信息
     */
    @Override
    public GdAtchItem selectGdAtchItemById(Long id)
    {
        return gdAtchItemMapper.selectGdAtchItemById(id);
    }

    /**
     * 查询菜品信息列表
     * 
     * @param gdAtchItem 菜品信息
     * @return 菜品信息
     */
    @Override
    public List<GdAtchItem> selectGdAtchItemList(GdAtchItem gdAtchItem)
    {
        return gdAtchItemMapper.selectGdAtchItemList(gdAtchItem);
    }

    /**
     * 新增菜品信息
     * 
     * @param gdAtchItem 菜品信息
     * @return 结果
     */
    @Override
    public int insertGdAtchItem(GdAtchItem gdAtchItem)
    {
        return gdAtchItemMapper.insertGdAtchItem(gdAtchItem);
    }

    /**
     * 修改菜品信息
     * 
     * @param gdAtchItem 菜品信息
     * @return 结果
     */
    @Override
    public int updateGdAtchItem(GdAtchItem gdAtchItem)
    {
        return gdAtchItemMapper.updateGdAtchItem(gdAtchItem);
    }

    /**
     * 批量删除菜品信息
     * 
     * @param ids 需要删除的菜品信息主键
     * @return 结果
     */
    @Override
    public int deleteGdAtchItemByIds(Long[] ids)
    {
        return gdAtchItemMapper.deleteGdAtchItemByIds(ids);
    }

    /**
     * 删除菜品信息信息
     * @param id 菜品信息主键
     * @return 结果
     */
    @Override
    public int deleteGdAtchItemById(Long id)
    {
        return gdAtchItemMapper.deleteGdAtchItemById(id);
    }
}
